package com.gopay.common.domain.riskcontrol;

import com.gopay.common.cipher.utils.SensitiveInfoUtils;
import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 风控交易已用额度表
 * @RcTransUsedLimit.java
 * @author zhuliang
 * @2017年7月28日 上午14:42:48  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "RC_TRANS_USED_LIMIT")
public class RcTransUsedLimit extends BaseEntity{


	private static final long serialVersionUID = 1367817998711079082L;

	/**
	 * 主键
	 */
	@Id
	@Column(name = "GOPAY_ORDER_ID", unique = true, nullable = false, length = 30)
	private String gopayOrderId;

	/**
	 * 内部交易码
	 */
	@Column(name="INT_TXN_CD",nullable = false,length = 6)
	private String intTxnCd;


	/**
	 * 交易金额
	 */
	@Column(name = "TXN_AMT",nullable = false, precision = 20, scale = 2)
	private BigDecimal txnAmt;

	/**
	 * 国付宝服务器时间
	 */
	@Column(name="GOPAY_TXN_TM",nullable = false)
	private Date gopayTxnTm;

	/**
	 * 支付方式
	 */
	@Column(name = "PAY_CHANNEL", length = 2)
	private String payChannel;

	/**
	 * 付款方客户号
	 */
	@Column(name = "PAY_CUST_ID", length = 10)
	private String payCustId;

	/**
	 * 收款方客户号
	 */
	@Column(name = "RECV_CUST_ID", length = 10)
	private String recvCustId;

	/**
	 * 对公对私标识 1-对公 2-对私
	 */
	@Column(name = "BC_FLAG", precision = 1, scale = 0)
	public String bcFlag;

	/**
	 * 银行卡号
	 */
	@Column(name="BANK_CARD_HASH", length = 50)
	private String bankCardHash;

	/**
	 * 创建人
	 */
	@Column(name="CREATE_OPER_ID")
	private String createOperId;

	/**
	 * 创建时间
	 */
	@Column(name="CREATED_TS")
	private Date createdTs;

	public String getGopayOrderId() {
		return gopayOrderId;
	}

	public void setGopayOrderId(String gopayOrderId) {
		this.gopayOrderId = gopayOrderId;
	}

	public String getIntTxnCd() {
		return intTxnCd;
	}

	public void setIntTxnCd(String intTxnCd) {
		this.intTxnCd = intTxnCd;
	}

	public BigDecimal getTxnAmt() {
		return txnAmt;
	}

	public void setTxnAmt(BigDecimal txnAmt) {
		this.txnAmt = txnAmt;
	}

	public Date getGopayTxnTm() {
		return gopayTxnTm;
	}

	public void setGopayTxnTm(Date gopayTxnTm) {
		this.gopayTxnTm = gopayTxnTm;
	}

	public String getPayChannel() {
		return payChannel;
	}

	public void setPayChannel(String payChannel) {
		this.payChannel = payChannel;
	}

	public String getPayCustId() {
		return payCustId;
	}

	public void setPayCustId(String payCustId) {
		this.payCustId = payCustId;
	}

	public String getRecvCustId() {
		return recvCustId;
	}

	public void setRecvCustId(String recvCustId) {
		this.recvCustId = recvCustId;
	}

	public String getBcFlag() {
		return bcFlag;
	}

	public void setBcFlag(String bcFlag) {
		this.bcFlag = bcFlag;
	}

	public String getBankCardHash() {
		return bankCardHash;
	}

	public void setBankCardHash(String bankCardHash) {
		this.bankCardHash = bankCardHash;
	}

	public String getCreateOperId() {
		return createOperId;
	}

	public void setCreateOperId(String createOperId) {
		this.createOperId = createOperId;
	}

	public Date getCreatedTs() {
		return createdTs;
	}

	public void setCreatedTs(Date createdTs) {
		this.createdTs = createdTs;
	}

}
